#include "../Common/Thread.h"
#include "Data.h"

class SaverThread : public CThread
{
public:
    SaverThread(std::string name, Data* data)
        : CThread(name), data(data)
    {
    }
    ~SaverThread()
    {
    }

public:
    void run()
    {
        while(1)
        {
            data->save();
            Sleep(1000);
        }
    }

private:
    Data* data;
};